package com.qiangesoft.blog.core.service;

import com.qiangesoft.blog.common.mvc.PageQuery;
import com.qiangesoft.blog.common.mvc.PageResultVO;
import com.qiangesoft.blog.core.entity.BlogTool;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.blog.core.pojo.query.SourceQueryDTO;
import com.qiangesoft.blog.core.pojo.vo.ToolInfoVO;

import java.util.List;

/**
 * <p>
 * 工具 服务类
 * </p>
 *
 * @author qiange
 * @since 2023-06-16
 */
public interface IBlogToolService extends IService<BlogTool> {

    PageResultVO<ToolInfoVO> listTool(PageQuery pageQuery);


    PageResultVO<BlogTool> pageTool(PageQuery pageQuery, SourceQueryDTO sourceQuery);

    BlogTool getToolById(Long id);

    void insertTool(BlogTool tool);

    void updateTool(BlogTool tool);

    void deleteTool(Long id);

    void deleteBatchTool(List<Long> ids);

    void putTopTool(BlogTool tool);

    void publishAndShelf(BlogTool tool);
}
